var submitForm = function($dialog,$grid,$pjq) {
	 var categoryNameVal=$("#categoryName").val();
	 var bigCateIdVal=$("#bigCateId").val();
	 if(bigCateIdVal==null){$pjq.messager.alert("提示","所属部门分类不能为空！","info"); return;}
	 if($.trim(categoryNameVal)==""){$pjq.messager.alert("提示","类型名称不能为空！","info"); return;}
	 $.post(base+"/"+path+"/add"+suffix,$("#frm").serialize(),function(data){
			if(data){
				$pjq.messager.alert("提示","提交成功！","info");
				$grid.datagrid("load");
				$dialog.dialog("destroy");
			}else{
				$pjq.messager.alert("提示","提交失败！","error");
			}
	},"json");
	 /*$.post(base+"/"+path+"/checkCategoryName"+suffix,{bigCateId:bigCateIdVal,categoryName:categoryNameVal},function(data){
		 	if(data){
				$pjq.messager.alert("提示","该类型名称已存在！","info");
			}else{
				 
			}
	 },"json");*/
};
